export const MOBILE_RULE = {
  PATTERN: /^1[3456789]\d{9}$/,
  MESSAGE: '请输入正确的手机号码',
};

export const NAME_RULE = {
  PATTERN: /^[a-zA-Z0-9_\-\u4e00-\u9fa5]+$/,
  MESSAGE: '请输入中英文、数字和符号“-”、“_”',
};

export const FULL_NAME_RULE = {
  PATTERN: /^[a-zA-Z\s\u4e00-\u9fa5]+$/,
  MESSAGE: '请输入中英文和空格',
};

export const CODE_RULE = {
  PATTERN: /^[a-zA-Z0-9_\-]+$/,
  MESSAGE: '请输入英文、数字和符号“-”、“_”',
};

export const NUM_RULE = {
  PATTERN: /^\d+$/,
  MESSAGE: '请输入数字',
};
export const ACCOUNT_RULE = {
  PATTERN: /^[a-zA-Z0-9]+$/,
  MESSAGE: '请输入英文或数字',
};

export const TEL_RULE = {
  PATTERN: /^[0-9\s\-\(\)\+]+$/,
  MESSAGE: '请输入数字、空格和符号“(”、“)”、“-”、“+”',
};

export const EMAIL_RULE = {
  PATTERN: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  MESSAGE: '请输入正确的邮箱地址',
};

export const TWO_DECIMAL_RULE = {
  PATTERN: /^\d+(\.\d{0,2})?$/,
  MESSAGE: '请输入正确的数字',
};

export const ENGLISH_NAME_RULE = {
  PATTERN: /^[a-zA-Z\s]{1,100}$/,
  MESSAGE: '请输入英文、空格',
};

export const CHINESE_NAME_RULE = {
  PATTERN: /^[A-Z\u4e00-\u9fa5]+$/,
  MESSAGE: '请输入中文、大写英文',
};

export const THREE_DECIMAL_RULE = {
  PATTERN: /^\d{3}$/,
  MESSAGE: '请输入3位数字',
};

export const IATA_RULE = {
  PATTERN: /^[A-Z0-9]{2}$/,
  MESSAGE: '请输入2位大写英文或数字',
};

export const FIXED_CHARACTER_RULE = {
  PATTERN: /^[A-Z0-9]+$/,
  MESSAGE: '请输入大写英文或数字',
};

export const WAYBILLNO_RULE = {
  PATTERN: /^[a-zA-Z0-9\s\-\,\.\;]+$/,
  MESSAGE: '请输入英语、数字、空格和符号“,”、“.”、“-”、“;”',
};

export const FLIGHTNO_RULE = {
  PATTERN: /^[a-zA-Z0-9]{5,7}$/,
  MESSAGE: '请输入5-7位大写英文或数字',
};
export const MAIN_RULE_NAME = {
  PATTERN: /^[a-zA-Z_\-\u4e00-\u9fa5]+$/,
  MESSAGE: '请输入中英文和符号“-”、“_”',
};
